//
//  ImageToSoundViewController.h
//  ImageToSound
//
//  Created by jvmilazz on 9/26/11.
//  Copyright 2011 ASU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AudioManager.h"


@interface ImageToSoundViewController : UIViewController {
    UIImagePickerController *picker;
    IBOutlet UIImageView * selectedImage;
    AudioManager * audioManager;
    UILabel * statusLabel;
    IBOutlet UIButton* playButton;
    IBOutlet UIButton* recordButton;
    UIAlertView * createSoundAlert; // Remove this after createSoundButton is linked
    
    //DO 
    //NOT
    //WRITE
    //TO
    //THIS
    //ARRAY!!!
    //IT's being pulled from the bitmapData of the selected image, WHICH IS A const UInt8*!!!
    //we set the pointer, we read the data, and THAT'S IT
    RGBPixel* imageData;
    
    //helper for the imageData array
    CGSize imageSize;
}

- (RGBPixel*)pixelDataForRow:(int)row column:(int)column;

@property (nonatomic, retain) IBOutlet UIImageView * selectedImage;
@property (nonatomic, retain) IBOutlet AudioManager * audioManager;
@property (nonatomic, retain) IBOutlet UILabel * statusLabel;
@property (nonatomic, retain) IBOutlet UIButton * playButton;
@property (nonatomic, retain) IBOutlet UIButton * recordButton;
@property (nonatomic, retain) IBOutlet UIAlertView * createSoundAlert;

- (IBAction) buttonClicked_selectImage;
- (IBAction) buttonClicked_createSound;

@end
